home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 6
/
The Arsenal Files 6 (Arsenal Computer).ISO
/
prg_casm
/
jlvesa11.zip
/
JLVESA12.ASM
< prev
next >
Wrap
Assembly Source File
|
1995-11-14
|
751b
|
42 lines
; This routine is part of VESA SVGA -library
;
; Copyright 1994 Johannes Lehtinen
; All rights reserved
model large,c
p386
segment jlvesa12_TEXT USE16 'CODE'
assume cs:jlvesa12_TEXT
; void JVSVGA_WaitForVRetrace(void)
;
; Odottaa kunnes vertical retrace alkaa
proc JVSVGA_WaitForVRetrace far
public JVSVGA_WaitForVRetrace
mov dx,3daH ; VGA-port
; Wait if there is vretrace allready going on
wait_loop1:
in al,dx
test al,8 ; Test if vretrace
jnz short wait_loop1
; Wait until vretrace begins
wait_loop2:
in al,dx
test al,8 ; Test if vretrace
jz short wait_loop2
retf
endp JVSVGA_WaitForVRetrace
ends
end